package com.hz.copyingsystem.service.impl;

import com.hz.copyingsystem.entity.CopyingSteleCalligraphyCharacterEntity;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hz.common.utils.PageUtils;
import com.hz.common.utils.Query;

import com.hz.copyingsystem.dao.CopyingSteleCalligraphySinglepageDao;
import com.hz.copyingsystem.entity.CopyingSteleCalligraphySinglepageEntity;
import com.hz.copyingsystem.service.CopyingSteleCalligraphySinglepageService;


@Service("copyingSteleCalligraphySinglepageService")
public class CopyingSteleCalligraphySinglepageServiceImpl extends ServiceImpl<CopyingSteleCalligraphySinglepageDao, CopyingSteleCalligraphySinglepageEntity> implements CopyingSteleCalligraphySinglepageService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<CopyingSteleCalligraphySinglepageEntity> page = this.page(
                new Query<CopyingSteleCalligraphySinglepageEntity>().getPage(params),
                new QueryWrapper<CopyingSteleCalligraphySinglepageEntity>()
        );

        return new PageUtils(page);
    }

    @Override
    public List<CopyingSteleCalligraphySinglepageEntity> getBySid(Long sid) {
        return this.baseMapper.getBySid(sid);
    }

}